package sensors.realSensors;

import pacman.Ghost;
import lejos.nxt.addon.IRSeeker;
import sensors.IRSensor;
import sensors.Sensor;

public class RealInfraredSensor extends Sensor implements IRSensor{
	
	public RealInfraredSensor(Ghost ghost){
		super(ghost);
	}
	public int getDirection(){
		lastReading = getGhost().getCommunicator().getDirectionIR();
		return lastReading;
		}
	@Override
	public int getLastReading() {
		return lastReading;
	}
}
 